<?
session_start();
@ini_set('display_errors', 'off');
include_once("class.lib/db.class.php");
include_once("class.lib/user.class.php");
include_once("class.lib/diplome.class.php");
include_once("class.lib/cours.class.php");
include_once("class.lib/domaine.class.php");
include_once("class.lib/mention.class.php");
include_once("class.lib/niveau.class.php");
include_once("class.lib/aa_projet.class.php");
include_once("class.lib/grade.class.php");

$cin=$_SESSION["cin"];
if($cin=="") { header("Location: ../index.php");   }
if(isset($_GET['id_ue'])){
	$code_ue=$_GET['id_ue'];
}
else
{
$_GET['id_ue']=$_SESSION["code"];
}

/*
if(!isset($_SESSION['step'])) $_SESSION['step']='2';
else
{

//$_SESSION["code"]
	if($_SESSION['code']!='')
	{
	 if($_SESSION['step']=='3' )  { 
	//header("Location: equipe.php?id_ue=".$_SESSION['code']); 
	echo "<script language=\"JavaScript\"> document.location=\"equipe.php?id_ue=".$_SESSION['code']."\"; </script>;";
	}
	else if ($_SESSION['step']=='4' )  { 
	header("Location: confirmation.php");
	echo "<script language=\"JavaScript\"> document.location=\"confirmation.php?id_ue=".$_SESSION['code']."\"; </script>;";
	}
	}
	else
	echo "<script language=\"JavaScript\"> document.location=\"projet.php\"; </script>;";
}*/
//echo $code_ue;exit;



?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
	<html>	
		<head>
        <title>Administration</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
        <script type="text/javascript" src="jquery-1.5.1.min.js"></script>
		
		<link href="presse.css" rel="stylesheet" type="text/css" />
		
		<link rel="stylesheet" href="css/validationEngine.jquery.css" type="text/css" media="screen" title="no title" charset="iso-8859-1" />
<link rel="stylesheet" href="css/template.css" type="text/css" media="screen" title="no title" charset="iso-8859-1" />
<script type="text/javascript" src="jquery-1.5.1.min.js"></script>
<script src="js/jquery.validationEngine-fr.js" type="text/javascript"></script>  
<script src="js/jquery.validationEngine.js" type="text/javascript"></script>
<script type="text/javascript" src="javascript.js"></script>

<script>
function load_page(page,zone){
		$.ajax({
			type:"POST",
			url : page,
			data: "",
			beforeSend: function(xhr){
                $("#"+zone).html("<img src='../../images/loading.gif'/>");
            },
			success : function (data) {
				$("#"+zone).html(data);
			}
			});
	}

function load_page_action(page,zone,id_coconcepteur){
		
		
			$(".espacemodif2").html("");
			$("#ajout").html("");
		$.ajax({
			type:"POST",
			url : page,
			data: "id_coconcepteur="+id_coconcepteur,
			beforeSend: function(xhr){
                $("#"+zone).html("<img src='../images/loading.gif'/>");
            },
			success : function (data) {
				$("#"+zone).html(data);
			}
			});
	}
	
function reset_page(zone)
{
			$("#"+zone).html("");
}	
	
	load_page('addpartenaire.php?id_ue=<? echo $_GET['id_ue'];?>','ajout');
	
</script>

<body  onload="load_page('listpartenaire.php?id_ue=<? echo $_GET['id_ue'];?>','listcoconcepteur');">



		<table align="center">
	 <tr align="center"><td><img src="images/partnership.png"  width="72" height="72" /></td>
	 <td align="right"><H1><font color="DD0269"> IDENTIFICATION DES PARTENAIRES DU PROJET </font></H1><br/></td>
	 </tr>
	</table>
<table width="90" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr> 
    
    <!--<td><img src="images/etape1_off.jpg" width="90" height="20" /></td>-->
    <td><img src="images/etape2_off.jpg" width="90" height="20" /></td>
	<td><img src="images/etape3_on.jpg" width="90" height="20" /></td>
	<td><img src="images/etape4_off.jpg" width="90" height="20" /></td>
    <td>&nbsp;</td>
  </tr>
</table>
<u>
<H1>&nbsp; </H1>
</u> 

<!--
<a href="#" onclick="load_page('addpartenaire.php?id_ue=<? echo $_GET['id_ue'];?>','ajout');"><img src="images/add.png" border="0" valign="middle" align="left"><div align="left">&nbsp;Ajouter</div></a>
-->


<table width="500" border="0" cellspacing="0" cellpadding="0" align="center" >
    <tr> 
      <td align="left"> <p><strong><font color="DD0269">NB</font></strong>: Veuillez 
        v&eacute;rifier toutes les informations avant de valider le formulaire.<br />
        <br />
      </p>
      </td>
    </tr>
    <tr> 
      
    <td align="left">&nbsp; </td>
    </tr>
    <tr>
      <td> 
	  
        <table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
				
				<tr align="left"> 
				<td colspan="3"> <strong><img src="images/navi_arerow.gif" width="6" height="21" align="absmiddle" /> 
				A remplir pour chaque partenaire
                   </strong></td>
                </tr>
				<tr valign="top" bgcolor="#345491"> 
                  <td colspan="3"><img src="images/gif/pix.gif" width="1" height="1"></td>
                </tr>
				
                
				
        <tr align="left"> 
		<td  valign="top">
		
		<a href="#" onclick="load_page('addpartenaire.php?id_ue=<? echo $_GET['id_ue'];?>','ajout');"><img src="images/add.png" border="0" valign="middle" align="left"><div align="left">&nbsp;Ajouter</div></a>

		<div id="ajout">
		</div>
		
		</td>
          <td height="0" valign="top"><em><font color="#277BB0"><strong> </strong></font></em> 

        <form name="coconcepteur" id="coconcepteur" method="post" action="" >
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
 
				<!--tr align="left"> 
				   Si d'autres partenaires ont particip&eacute; &agrave; la conception de ce projet Veuillez les indiquer
                  <td height="25">Nom &amp; Pr&eacute;nom </td>
                  <td width="5" height="25">:</td>
                  <td height="25" ><textarea name="coconcepteur" cols="43" rows="5" id="coconcepteur"  title="Nom &amp; Pr&eacute;nom des co-concepteurs"></textarea></td>
                </tr-->

					<tr>
						
					<td colspan="3">
						
						<!-- new -->


				<div align="center" id="listcoconcepteur">
				<table id="listajout" width="500">

				<tr bgcolor="#72CFC2">
				<td>Nom</td><td>Pr&eacute;nom</td><td>Grade</td><td>Email</td><td>Tel.</td><td>Fonction</td><td align="center">Actions</td>
				</tr>

				<tr>
				<td>Nom</td><td>Pr&eacute;nom</td><td>Grade</td><td>Email</td><td>Tel.</td><td>Fonction</td><td align="center"><a href="#" onclick="load_page('updatepartenaire.php?id_ue=<? echo $_GET['id_ue'];?>','test_');">Modifier</a> | <a href="#" onclick="load_page('deletepartenaire.php?id_ue=<? echo $_GET['id_ue'];?>','test_');"> Supprimer</a></td>
				</tr>
				<tr>
				<td colspan="7" id="test_"></td>
				</tr>

				</table>

				</div>

						<!-- new -->
						
					</td>	
						
					</tr>
                <tr align="left"> 
                  <td height="25">&nbsp;</td>
                  <td height="25">&nbsp;</td>
                  <td height="25"><input name="addcoconcepteur" type="hidden" id="addcoconcepteur" value="OK" />                  </td>
                </tr>
                <tr> 
                  <td height="25" align="left">&nbsp;</td>
                  <td height="25">&nbsp;</td>
                  <td height="25" align="left"> <input type="reset" name="Submit22" value="R&eacute;tablir" class="button" /> 
                    <input name="modif_unite" type="hidden" id="modif_unite" value="OK" />
				    <input type="submit" name="Submit3" value="Confirmer" class="button" />                  </td>
                </tr>
              </table>
            </form>
       
      </td>
    </tr>
    <tr>
	<td>
	</td>
      
    <td align="left">&nbsp;</td>
    </tr>
  </table>
  </td>
    </tr>
	
	
	
	
	
	
</table>
<!--/td></tr>
</table-->

<p> 

<?
 //if(isset($_POST["addcoconcepteur"]))
  //  {
	 if(!empty($_POST['addcoconcepteur']))
{	  


	 


	$id_ue=$_GET['id_ue'];
	
	 //$_unite->UPDATE(); 
	 
	 $_SESSION['step']='3';
	// On actualise la page
	echo "<script language=\"JavaScript\"> document.location=\"equipe.php?id_ue=$id_ue\"</script>;";
	//} 
}
  
?>
</p>










</body>
</html>
<?php



?>